﻿using Capture.DAL;
using Capture.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Capture.BLL
{
    public class DataCaptureBLL
    {
        /// <summary>
        /// 添加单条DataCapture
        /// </summary>
        public bool CreateDataCapture(DataCapture model)
        {
            return new DataCaptureDAL().CreateDataCapture(model);
        }
        /// <summary>
        /// 获取最大Id
        /// </summary>
        /// <returns></returns>
        public int GetMaxId()
        {
            return new DataCaptureDAL().GetMaxId();
        }
        /// <summary>
        /// 获取单条数据
        /// </summary>
        public DataCapture GetDataCapture(String name)
        {
            return new DataCaptureDAL().GetDataCapture(name);
        }
        /// <summary>
        /// 获取一组树
        /// </summary>
        public List<DataCapture> GetDataCaptureList(int eid)
        {
            return new DataCaptureDAL().GetDataCaptureList(eid);
        }
        /// <summary>
        /// 获取条数
        /// </summary>
        public long GetAdvCount()
        {
            return new DataCaptureDAL().GetAdvCount();
        }
    }
}
